package com.itheima.dao;

import com.itheima.pojo.Member;
import com.itheima.pojo.MemberSetmealDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberDao {
    // 根据身份证查询会员
    @Select("select * from t_member where phoneNumber = #{phoneNumber}")
    Member findByphoneNumber(String phoneNumber);

    // 新增会员
    void insert(Member member);
}
